package com.lzh.designpatterns.factorymethod2;

import java.math.BigDecimal;

/**
 * @author liuzhihao
 * @create 2021-12-27 21:07
 *
 * 静态工厂方法
 */
public class NumberFactory {

    public static Number parse(String s) {
        return new BigDecimal(s);
    }

}
